﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Data.Linq;
namespace ConsoleApplication1
{
    public static class DataTableExtensions
    {
        public static bool Equals(this DataTable source, DataTable table)
        {
            table.AsEnumerable().Distinct().OrderBy(row => row["id"]);
            return source.AsEnumerable().SequenceEqual(table.AsEnumerable());
        }
    }
}
